package com.demo.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("/user/home")
    public String home() {
        System.out.println("-----User Home--------");
        return "User Home";
    }

    @GetMapping("/user/help")
    public String help() {
        throw new IllegalArgumentException("argument is error");
    }

    @GetMapping("/user/null")
    public String NullPoint() {
        throw new NullPointerException("NullPointerException is error");
    }
}
